//-------------------------------------------------------------------
//	Copyright (c) 2010-2014  Zhirnov Andrey
//	This file is part of the "UX Standard Lib" project.
//	See copyright notice in "UX_STL_Core.h".
//-------------------------------------------------------------------

#include "zip.h"

#ifndef UX_ZLIB_DISABLE

# ifdef PLATFORM_WINDOWS
	using namespace ::UX_STL::winapi;
# endif
	
# ifdef PLATFORM_ANDROID
	using namespace ::UX_STL::android;
# else
#  ifdef PLATFORM_BASE_POSIX
	using namespace ::UX_STL::posix;
#  endif
# endif

#pragma warning (push)
#pragma warning (disable: 4005)
#pragma warning (disable: 4996)
#pragma warning (disable: 4273)

extern voidp  malloc OF((uInt size));
extern voidp  calloc OF((uInt items, uInt size));
extern void   free   OF((voidpf ptr));

#include "zlib/adler32.c"
#include "zlib/compress.c"
#include "zlib/crc32.c"
#include "zlib/deflate.c"
#include "zlib/gzclose.c"
#include "zlib/gzlib.c"
#include "zlib/gzread.c"
#include "zlib/gzwrite.c"
#include "zlib/infback.c"
#include "zlib/inffast.c"
#include "zlib/inflate.c"
#include "zlib/inftrees.c"
#include "zlib/trees.c"
#include "zlib/uncompr.c"
#include "zlib/zutil.c"

#undef Len

#include "zlib/contrib/minizip/ioapi.c"
//#include "zlib/contrib/minizip/iowin32.c"
#include "zlib/contrib/minizip/miniunz.c"
#include "zlib/contrib/minizip/mztools.c"
#include "zlib/contrib/minizip/unzip.c"
#include "zlib/contrib/minizip/zip.c"

#pragma warning (pop)

#endif	// UX_ZLIB_DISABLE
